/*
 * BalanceResource.h
 *
 *  Created on: 2013. 9. 4.
 *      Author: mega@gamevil.com
 */

#ifndef BALANCERESOURCE_H_
#define BALANCERESOURCE_H_

#include <map>
#include "../User.h"

namespace ProjectZ { namespace NResource {

class BalanceData
{
public:
	BalanceData() {};
	~BalanceData() {};

	bool LoadResource(int company, int saleCode);
	int GetValue(int seq);

private:
	std::map<int, int> clsValueTree;
};

class BalanceResource
{
public:
	BalanceResource();
	virtual ~BalanceResource();

	bool 			LoadResource();
	int 			GetValue(User * pUser, int seq);
	int 			GetValue(int seq);
	BalanceData *	GetBalancePtr(User * pUser);

private:
	BalanceData * pBalanceAD;
	BalanceData * pBalanceIOS;
};


} /*NResource*/ } /* namespace ProjectZ */

#endif /* BALANCERESOURCE_H_ */
